package com.ruoyi.bills.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 租客账单管理对象 mf_bills
 * 
 * @author MfBills
 * @date 2025-07-22
 */
public class MfBills extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 账单唯一ID */
    @Excel(name = "账单唯一ID")
    private Long billId;

    /** 关联的合同ID */
    @Excel(name = "关联的合同ID")
    private Long contractId;

    /** 账单类型 */
    @Excel(name = "账单类型")
    private Long billType;

    /** 账单金额 */
    @Excel(name = "账单金额")
    private BigDecimal amount;

    /** 缴费截止日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "缴费截止日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date dueDate;

    /** 是否已支付 */
    @Excel(name = "是否已支付")
    private Integer paid;

    /** 实际支付时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "实际支付时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date paymentTime;

    public void setBillId(Long billId) 
    {
        this.billId = billId;
    }

    public Long getBillId() 
    {
        return billId;
    }

    public void setContractId(Long contractId) 
    {
        this.contractId = contractId;
    }

    public Long getContractId() 
    {
        return contractId;
    }

    public void setBillType(Long billType) 
    {
        this.billType = billType;
    }

    public Long getBillType() 
    {
        return billType;
    }

    public void setAmount(BigDecimal amount) 
    {
        this.amount = amount;
    }

    public BigDecimal getAmount() 
    {
        return amount;
    }

    public void setDueDate(Date dueDate) 
    {
        this.dueDate = dueDate;
    }

    public Date getDueDate() 
    {
        return dueDate;
    }

    public void setPaid(Integer paid) 
    {
        this.paid = paid;
    }

    public Integer getPaid() 
    {
        return paid;
    }

    public void setPaymentTime(Date paymentTime) 
    {
        this.paymentTime = paymentTime;
    }

    public Date getPaymentTime() 
    {
        return paymentTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("billId", getBillId())
            .append("contractId", getContractId())
            .append("billType", getBillType())
            .append("amount", getAmount())
            .append("dueDate", getDueDate())
            .append("paid", getPaid())
            .append("paymentTime", getPaymentTime())
            .append("createTime", getCreateTime())
            .toString();
    }
}
